package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * GoodsAttribute. Corresponds to the database table "GOODS_ATTRIBUTE"
 */
@DatabaseTable(tableName = "GOODS_ATTRIBUTE")
public class GoodsAttribute extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "GOODS_ATTRIBUTE"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * ATTRIBUTE_ID
         */
        public static final String attributeId = "ATTRIBUTE_ID";

        /**
         * GOODS_ID
         */
        public static final String goodsId = "GOODS_ID";

        /**
         * TEMPLATE_ID
         */
        public static final String templateId = "TEMPLATE_ID";

    }

    @DatabaseField(columnName = $.attributeId, canBeNull = false)
    private String attributeId;

    @DatabaseField(columnName = $.goodsId, canBeNull = false)
    private String goodsId;

    @DatabaseField(columnName = $.templateId, canBeNull = false)
    private String templateId;

    public String getAttributeId() {
        return attributeId;
    }

    public void setAttributeId(String attributeId) {
        this.attributeId = attributeId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",attributeId=").append(attributeId);
        sb.append(",goodsId=").append(goodsId);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

